//
//  NSDictionary+SPLog.m
//  SPKit
//
//  Created by 李双鹏 on 15/10/6.
//  Copyright (c) 2015年 SP. All rights reserved.
//

#import "NSDictionary+SPLog.h"

#import "NSObject+NSJSONSerialization.h"
#import "NSArray_NSDictionary+SPLog.h"

@implementation NSDictionary (SPLog)

-(void)spLog{
    [self spLogToLevel:UINT32_MAX];
}

- (void)spLogToLevel:(NSUInteger)level{
    if ((NSInteger)level < 0) {
        level = 0;
    }
    NSLog(@"<%@:%p> content:\n%@",NSStringFromClass([self class]),self,[self logFromLevel:0 toLevel:level start:0]);
}
@end
